package com.smartfactory.sail.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.smartfactory.sail.entity.StorageCurrentInfo;
import com.smartfactory.sail.vo.storage.ItemStorageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 仓库当前情况/每种物品总情况 服务类
 * </p>
 *
 * @author 王巨壁
 * @since 2019-08-07
 */
public interface IStorageCurrentInfoService extends IService<StorageCurrentInfo> {

    Integer getStorageCurrentSize( @Param("ew") Wrapper<StorageCurrentInfo> queryWrapper);

    List<StorageCurrentInfo> getItemCurrentSize(@Param("orderId")Long orderId);

    ItemStorageInfo getStorageInfoByItemId(Long itemId, Integer storageType);

    //根据流水id 修改总库存数量 1=加 -1=减
    boolean updateSize(Long recordId,Integer jj);
}
